<%@page import="com.dfhc.bus.busmessagerecipients.IMessageRecipientsConstants" %>
<%@page import="com.dfhc.util.StringHelper"%>
<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />

<!-- 全局js 和css包 -->
<%@ include file="/jsp/include/web/new/global.jsp" %>

<title>自定义查询 </title>

<%@ taglib uri="/dfhc" prefix="dfhc" %>
</head>
<body>


<article class="page-container">
	<form action="<%=request.getContextPath() %>/pubController/doCustomQuery" method="post" class="form form-horizontal" id="form-add">
	<dfhc:div templateId="h_ui_div_row_cl">
			<dfhc:title templateId="h_ui_label_title">自定义sql查询：</dfhc:title>
			<dfhc:div templateId="h_ui_div_fromcontrol">			    
				<dfhc:textarea name="sql" cols="" rows=""   placeholder="为了避开sql注入,select用query代替"  templateId="h_ui_textarea" ></dfhc:textarea>				
			</dfhc:div>
	</dfhc:div>


	 <dfhc:div templateId="h_ui_div_row_cl">
		<dfhc:div templateId="h_ui_div_pop_up_button">
			<dfhc:button templateId="h_ui_submit_button" />
		</dfhc:div>
	</dfhc:div>
	</form>
</article>


<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});

$("#form-add").validate({
		rules:{			
			sql:{			
				required:true,
				minlength:1
			}
		},
 		messages: {
			sql:{
		        required: "请输入消息状态",
		        minlength: "消息状态至少由1个字母组成"
	           }			
	    },		
		onkeyup:false,
		focusCleanup:true,
		success:"valid"
	});	

});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
